package com.design.birdge.message.type;

import com.design.birdge.message.AbstractMessage;
import com.design.birdge.message.MessageImplementor;

/**
 * 消息类型
 */
public class CommonMessage extends AbstractMessage {
    /**
     * 构造方式，构造消息时指定发送方式
     *
     * @param implementor 消息发送者
     */
    public CommonMessage(MessageImplementor implementor) {
        super(implementor);
    }

    @Override
    public void sendMessage(String message, String toUser) {
        /*对于普通消息，直接调用父类方法，发送消息即可*/
        super.sendMessage(message, toUser);
    }
}
